package com.one.rope.mvp.web.business.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 管理后台用户角色关系表
 * </p>
 *
 * @author wesley
 * @since 2020-02-20
 */
public class AdminUserRole extends Model<AdminUserRole> {

  private static final long serialVersionUID = 1L;

  /**
   * 用户角色id，主键
   */
  private Long id;

  /**
   * 用户id
   */
  private Long userId;

  /**
   * 角色id
   */
  private Long roleId;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public Long getRoleId() {
    return roleId;
  }

  public void setRoleId(Long roleId) {
    this.roleId = roleId;
  }

  @Override
  protected Serializable pkVal() {
    return this.id;
  }

  @Override
  public String toString() {
    return "AdminUserRole{" +
        "id=" + id +
        ", userId=" + userId +
        ", roleId=" + roleId +
        "}";
  }
}
